class Solution:
    def multiply(self, num1, num2):
        """
        :type num1: str
        :type num2: str
        :rtype: str
        """
        index = 0
        s = 0
        result = 0
        if len(num1) >= 110 or len(num2) >= 110:
            return
        for i in range(len(num1)-1,-1,-1):
            for j in range(len(num2)-1,-1,-1):
                s += (((int(num1[i]) * int(num2[j])) + index)%10)*pow(10,len(num2)-1-j)
                index = int(((int(num1[i]) * int(num2[j])) + index)/10)
                
            s += index*pow(10,len(num2))
            print(s,index)
            result += s*pow(10,len(num1)-1-i)
            s = 0
            index = 0
        return str(result)